package com.ruoyi.system.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.base.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 购物卡表 wdy_shopping_card
 * 
 * @author ruoyi
 * @date 2020-10-09
 */
public class WdyShoppingCard extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** id */
		private Long id;
	/** 用户id */
		private String userId;
	/** 卡号 */
	@Excel(name = "购物卡号", type = Excel.Type.IMPORT)
		private String cardNo;
	/** 卡密 */
	@Excel(name = "密码", type = Excel.Type.IMPORT)
		private String cardPwd;
	/** 面额 */
	@Excel(name = "面额", type = Excel.Type.IMPORT)
	private BigDecimal amount;
	/** 兑换批次 */
		private String exNo;
	/** 兑换时间 */
	    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
		private Date exTime;
	/** 不否已使用(0否，1是) */
		private Integer useFlag;
	/** 删除标志（0代表存在 1代表删除） */
		private Integer delFlag;
	/** 创建者 */
		private String createBy;
	/** 创建时间 */
	@Excel(name = "创建时间", type = Excel.Type.IMPORT)
	    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
		private Date createTime;
	/** 更新者 */
		private String updateBy;
	/** 更新时间 */
	    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
		private Date updateTime;
	/** 备注信息 */
		private String remark;

	public void setId(Long id) 
	{
		this.id = id;
	}

	public Long getId() 
	{
		return id;
	}
	public void setUserId(String userId) 
	{
		this.userId = userId;
	}

	public String getUserId() 
	{
		return userId;
	}
	public void setCardNo(String cardNo) 
	{
		this.cardNo = cardNo;
	}

	public String getCardNo() 
	{
		return cardNo;
	}
	public void setCardPwd(String cardPwd) 
	{
		this.cardPwd = cardPwd;
	}

	public String getCardPwd() 
	{
		return cardPwd;
	}
	public void setAmount(BigDecimal amount) 
	{
		this.amount = amount;
	}

	public BigDecimal getAmount() 
	{
		return amount;
	}
	public void setExNo(String exNo) 
	{
		this.exNo = exNo;
	}

	public String getExNo() 
	{
		return exNo;
	}
	public void setExTime(Date exTime) 
	{
		this.exTime = exTime;
	}

	public Date getExTime() 
	{
		return exTime;
	}
	public void setUseFlag(Integer useFlag) 
	{
		this.useFlag = useFlag;
	}

	public Integer getUseFlag() 
	{
		return useFlag;
	}
	public void setDelFlag(Integer delFlag) 
	{
		this.delFlag = delFlag;
	}

	public Integer getDelFlag() 
	{
		return delFlag;
	}
	public void setCreateBy(String createBy) 
	{
		this.createBy = createBy;
	}

	public String getCreateBy() 
	{
		return createBy;
	}
	public void setCreateTime(Date createTime) 
	{
		this.createTime = createTime;
	}

	public Date getCreateTime() 
	{
		return createTime;
	}
	public void setUpdateBy(String updateBy) 
	{
		this.updateBy = updateBy;
	}

	public String getUpdateBy() 
	{
		return updateBy;
	}
	public void setUpdateTime(Date updateTime) 
	{
		this.updateTime = updateTime;
	}

	public Date getUpdateTime() 
	{
		return updateTime;
	}
	public void setRemark(String remark) 
	{
		this.remark = remark;
	}

	public String getRemark() 
	{
		return remark;
	}

    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("cardNo", getCardNo())
            .append("cardPwd", getCardPwd())
            .append("amount", getAmount())
            .append("exNo", getExNo())
            .append("exTime", getExTime())
            .append("useFlag", getUseFlag())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
